package com.tea.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tea.Model.DeliveryCompany;
import com.tea.service.DeliveryCompanyService;
import com.tea.utils.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

@RestController
@RequestMapping("/track")
public class TrackController {

    @Resource
    private DeliveryCompanyService deliveryCompanyService;

    @GetMapping("/test")
    public Result<Object> get(String num){


//        String  expressCompanyName = ExpressCompanyUtil.getExpressCompanyName(num);
//
//        QueryWrapper<DeliveryCompany> deliveryCompanyQueryWrapper = new QueryWrapper<>();
//        deliveryCompanyQueryWrapper.like("delivery_name",expressCompanyName);
//        List<DeliveryCompany> one = deliveryCompanyService.list(deliveryCompanyQueryWrapper);
//
//        HashMap<String, Object> map = new HashMap<>();
//        map.put("expressCompanyName",expressCompanyName);
//        map.put("deliveryCompany",one);
        return Result.success();
    }
}
